package com.mmall.concurrency;

import com.mmall.concurrency.service.ItestService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class ConcurrencyApplication {

	public static void main(String[] args) {
		ConfigurableApplicationContext applicationContext = new SpringApplicationBuilder(ConcurrencyApplication.class).
				profiles("notUser").
				web(WebApplicationType.NONE).
				run(args);
		ItestService bean = applicationContext.getBean(ItestService.class);
		bean.test();
		applicationContext.close();
	}

}
